#ifndef USR_LIST
#define USR_LIST

#include "public.h"

typedef struct UsrNode
{
	char caUsrName[NAME_LEN];
	char caUsrPwd[PWD_LEN];
	int iAge;

	struct UsrNode *pNext;
}UsrNode;

typedef struct UsrList
{
	int iLen;
	UsrNode *pFirstNode;
}UsrList;

UsrList *mkUsrList();
UsrNode *mkUsrNode();
void insert(UsrList *list, UsrNode *node);
UsrNode *findUsrByName(const UsrList *list, const char *name);
void display(const UsrList *list);


#endif
